import { IonicModule } from '@ionic/angular';
import { RouterModule, Routes } from '@angular/router';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { RoomLiftPage } from '@pages/home/room-lift/lift';
import { RoomPage } from '@pages/home//room/room';
import { SystemPage } from '@pages/home/system/system';
import { DevicePage } from '@pages/device/device';
import { LiftPage } from '@pages/device/lift/lift';
import { FireDetailPage } from '@pages/device/fire/fire-detail/fire-detail';
import { FireKagePage } from '@pages/device/fire/fire-link/fire-link';
import { FireOthersPage } from '@pages/device/fire/fire-others/fire-others';
import { RoomFirePage } from '@pages/home/room-fire/fire';
import { AlarmReportPage } from '@pages/home/alarm-report/alarm-report';
import { ParkPage } from '@pages/home/park/park';
import { KeyinspectionPage } from '@pages/home/keyinspection/page';
import { IotOperation } from '@pages/home/iot-operation/iot-operation';
import { AlarmDetailPage } from '@components/alarm-detail/alarm-detail';
import { AlarmSolveComponent } from '@components/alarm-solve/alarm-solve.component';
import { ControllerPage } from '@pages/home/controller/page';
import { WashRoomPage } from '@pages/home/wash-room/wash-room';

const routs: Routes = [
  {
    path: '',
    children: [
      { path: 'RoomLiftPage', component: RoomLiftPage },
      { path: 'RoomPage', component: RoomPage },
      { path: 'SystemPage', component: SystemPage },
      { path: 'LiftPage', component: LiftPage },
      { path: 'DevicePage', component: DevicePage },
      { path: 'FireDetailPage', component: FireDetailPage },
      { path: 'FireKagePage', component: FireKagePage },
      { path: 'FireOthersPage', component: FireOthersPage },
      { path: 'RoomFirePage', component: RoomFirePage },
      { path: 'alarmReport', component: AlarmReportPage },
      { path: 'ParkPage', component: ParkPage },
      { path: 'keyInspection', component: KeyinspectionPage },
      { path: 'IotOperation', component: IotOperation },
      { path: 'AlarmDetailPage', component: AlarmDetailPage },
      { path: 'AlarmDetailPage/AlarmSolveComponent', component: AlarmSolveComponent },
      { path: 'ControllerPage', component: ControllerPage },
      { path: 'WashRoomPage', component: WashRoomPage },
    ]
  }
];

@NgModule({
  imports: [
    IonicModule,
    CommonModule,
    FormsModule,
    RouterModule.forChild(routs)
  ],
  exports: [RouterModule],
})
export class HomeRoutingModule { }
